home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML Authority.sea / XML Authority / Required / swingall.jar / javax / swing / text / Segment.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  560 b   |  24 lines

  1. package javax.swing.text;
  2.  
  3. public class Segment {
  4.    public char[] array;
  5.    public int offset;
  6.    public int count;
  7.  
  8.    public Segment() {
  9.       this.array = null;
  10.       this.offset = 0;
  11.       this.count = 0;
  12.    }
  13.  
  14.    public Segment(char[] var1, int var2, int var3) {
  15.       this.array = var1;
  16.       this.offset = var2;
  17.       this.count = var3;
  18.    }
  19.  
  20.    public String toString() {
  21.       return this.array != null ? new String(this.array, this.offset, this.count) : new String();
  22.    }
  23. }
  24.